"""Definition of the customer content type
"""

from zope.interface import implements

from Products.Archetypes import atapi
from Products.ATContentTypes.content import base
from Products.ATContentTypes.content import schemata

# -*- Message Factory Imported Here -*-

from my315ok.fangcan.interfaces import Icustomer
from my315ok.fangcan.config import PROJECTNAME

customerSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema((

    # -*- Your Archetypes field definitions here ... -*-

))

# Set storage on fields copied from ATContentTypeSchema, making sure
# they work well with the python bridge properties.

customerSchema['title'].storage = atapi.AnnotationStorage()
customerSchema['description'].storage = atapi.AnnotationStorage()

schemata.finalizeATCTSchema(customerSchema, moveDiscussion=False)


class customer(base.ATCTContent):
    """customer information"""
    implements(Icustomer)

    meta_type = "customer"
    schema = customerSchema

    title = atapi.ATFieldProperty('title')
    description = atapi.ATFieldProperty('description')

    # -*- Your ATSchema to Python Property Bridges Here ... -*-

atapi.registerType(customer, PROJECTNAME)
